<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: drogon::UploadFile类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacedrogon.html">drogon</a></li><li class="navelem"><a class="el" href="classdrogon_1_1UploadFile.html">UploadFile</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classdrogon_1_1UploadFile-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">drogon::UploadFile类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="UploadFile_8h_source.html">UploadFile.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af1248ea1cef5d98040ea8fa7a7a0e570" id="r_af1248ea1cef5d98040ea8fa7a7a0e570"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1UploadFile.html#af1248ea1cef5d98040ea8fa7a7a0e570">UploadFile</a> (const std::string &amp;filePath, const std::string &amp;<a class="el" href="classdrogon_1_1UploadFile.html#ada7278671acf1bb4b29b938d6c2a1bff">fileName</a>=&quot;&quot;, const std::string &amp;<a class="el" href="classdrogon_1_1UploadFile.html#aa46087d2235cfc41d909e4e4c1930bbf">itemName</a>=&quot;file&quot;, <a class="el" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> <a class="el" href="classdrogon_1_1UploadFile.html#adfa92fac7d4bd95397f8f441cfc8efcd">contentType</a>=<a class="el" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823a61e343a42203e1c58b16c9683e1f0876">CT_NONE</a>)</td></tr>
<tr class="memdesc:af1248ea1cef5d98040ea8fa7a7a0e570"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor  <br /></td></tr>
<tr class="separator:af1248ea1cef5d98040ea8fa7a7a0e570"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22a17d2717d77d9875da091304ddc8ee" id="r_a22a17d2717d77d9875da091304ddc8ee"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1UploadFile.html#a22a17d2717d77d9875da091304ddc8ee">path</a> () const</td></tr>
<tr class="separator:a22a17d2717d77d9875da091304ddc8ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada7278671acf1bb4b29b938d6c2a1bff" id="r_ada7278671acf1bb4b29b938d6c2a1bff"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1UploadFile.html#ada7278671acf1bb4b29b938d6c2a1bff">fileName</a> () const</td></tr>
<tr class="separator:ada7278671acf1bb4b29b938d6c2a1bff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa46087d2235cfc41d909e4e4c1930bbf" id="r_aa46087d2235cfc41d909e4e4c1930bbf"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1UploadFile.html#aa46087d2235cfc41d909e4e4c1930bbf">itemName</a> () const</td></tr>
<tr class="separator:aa46087d2235cfc41d909e4e4c1930bbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfa92fac7d4bd95397f8f441cfc8efcd" id="r_adfa92fac7d4bd95397f8f441cfc8efcd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdrogon_1_1UploadFile.html#adfa92fac7d4bd95397f8f441cfc8efcd">contentType</a> () const</td></tr>
<tr class="separator:adfa92fac7d4bd95397f8f441cfc8efcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>This class represents an upload file which will be transferred to the server via the multipart/form-data format </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="af1248ea1cef5d98040ea8fa7a7a0e570" name="af1248ea1cef5d98040ea8fa7a7a0e570"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1248ea1cef5d98040ea8fa7a7a0e570">&#9670;&#160;</a></span>UploadFile()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">drogon::UploadFile::UploadFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filePath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>fileName</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>itemName</em> = <code>&quot;file&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a>&#160;</td>
          <td class="paramname"><em>contentType</em> = <code><a class="el" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823a61e343a42203e1c58b16c9683e1f0876">CT_NONE</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">filePath</td><td>The file location on local host, including file name. </td></tr>
    <tr><td class="paramname">fileName</td><td>The file name provided to the server. If it is empty by default, the file name in the <code>filePath</code> is provided to the server. </td></tr>
    <tr><td class="paramname">itemName</td><td>The item name on the browser form. </td></tr>
    <tr><td class="paramname">contentType</td><td>The Mime content type for the part </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="adfa92fac7d4bd95397f8f441cfc8efcd" name="adfa92fac7d4bd95397f8f441cfc8efcd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adfa92fac7d4bd95397f8f441cfc8efcd">&#9670;&#160;</a></span>contentType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacedrogon.html#a2037a41934aeea1598d7468b4b8cb823">ContentType</a> drogon::UploadFile::contentType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ada7278671acf1bb4b29b938d6c2a1bff" name="ada7278671acf1bb4b29b938d6c2a1bff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada7278671acf1bb4b29b938d6c2a1bff">&#9670;&#160;</a></span>fileName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::UploadFile::fileName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa46087d2235cfc41d909e4e4c1930bbf" name="aa46087d2235cfc41d909e4e4c1930bbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa46087d2235cfc41d909e4e4c1930bbf">&#9670;&#160;</a></span>itemName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::UploadFile::itemName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a22a17d2717d77d9875da091304ddc8ee" name="a22a17d2717d77d9875da091304ddc8ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22a17d2717d77d9875da091304ddc8ee">&#9670;&#160;</a></span>path()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; drogon::UploadFile::path </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="UploadFile_8h_source.html">UploadFile.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
